export const editFormRules = {
  noticeTitle: [
    { required: true, message: '请输入标题', trigger: 'blur' },
  ],
  publishTime: [
    {required: true, message: '请选择日期', trigger: 'blur' }
  ],
  isTop: [
    {required: true, message: '请选择', trigger: 'blur' }
  ],
  status: [
    {required: true, message: '请选择', trigger: 'blur' }
  ],
  noticeType: [
    {required: true, message: '请选择', trigger: 'blur' }
  ]
}

export const editFormOptions = [
  {
    label: '公告标题',
    type: 'input',
    key: 'noticeTitle',
    props: {
      placeholder: '请输入公告标题'
    }
  },
  {
    label: '公告类型',
    type: 'select',
    key: 'noticeType',
    span: 12,
    props: {
      placeholder: '请选择'
    },
    options: [
      {
        label: '外网公告',
        value: '3'
      }
    ]
  },
  {
    label: '发布日期',
    type: 'date',
    key: 'publishTime',
    span: 12,
    props: {
      placeholder: '请选择日期',
      type: 'datetime',
    }
  },
  {
    label: '是否置顶',
    type: 'radio',
    key: 'isTop',
    span: 12,
    props: {
      placeholder: '请选择',
    },
    options: [
      {
        label: 2,
        text: '否'
      },
      {
        label: 1,
        text: '是'
      }
    ]
  },
  {
    label: '是否有效',
    type: 'radio',
    key: 'status',
    span: 12,
    props: {
      placeholder: '请选择',
    },
    options: [
      {
        label: 1,
        text: '无效'
      },
      {
        label: 0,
        text: '有效'
      }
    ]
  }
]
